package com.wva.video.domain.dto;

import com.wva.common.constant.PatternConst;
import lombok.Data;

import javax.validation.constraints.*;

import static com.wva.video.constant.UploadConst.*;

/**
 * @Author: hong
 * @Date: 2025/2/8 21:50:48
 */
@Data
public class CheckChunksDTO {
    /**
     * 分片大小，单位字节
     */
    @NotNull
    @Min(value = 1L)
    private Integer chunkSize;

    /**
     * 分片数量
     */
    @NotNull
    @Min(value = MIN_CHUNK_NUMBER)
    @Max(value = MAX_CHUNK_NUMBER)
    private Integer chunkNumber;

    /**
     * 整个文件的md5
     */
    @NotEmpty
    @Pattern(regexp = PatternConst.MD5)
    private String fileMd5;
}
